﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NeuralLib;
using TimbreRecognition.Recognition.Model;

namespace TimbreRecognition.Recognition.NEAT
{
    public class NEATNetworkWrapper : INetwork
    {
        private readonly DisconnectedNetwork network;

        private double[] output;

        public NEATNetworkWrapper(DisconnectedNetwork network)
        {
            this.network = network;
        }

        public double[] getOutput()
        {
            return output;
        }

        public void recalculateOutput(double[] input)
        {
            output = network.Compute(input);
        }
    }
}
